/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package module7.exercise2;

/**
 *
 * @author trang
 */
public abstract class Animal {
    protected int legs;

    public Animal(int legs) {
        this.legs = legs;
    }

    public abstract void eat();


    public void walk() {
        System.out.println(" The number of leg :" + legs);
    }
}

